import request from '@/utils/request'

// 查询用户通知表列表
export function listUsermsg(query) {
  return request({
    url: '/service/usermsg/list',
    method: 'get',
    params: query
  })
}

// 查询用户通知表详细
export function getUsermsg(usermsgId) {
  return request({
    url: '/service/usermsg/' + usermsgId,
    method: 'get'
  })
}

// 新增用户通知表
export function addUsermsg(data) {
  return request({
    url: '/service/usermsg',
    method: 'post',
    data: data
  })
}

// 修改用户通知表
export function updateUsermsg(data) {
  return request({
    url: '/service/usermsg',
    method: 'put',
    data: data
  })
}

// 删除用户通知表
export function delUsermsg(usermsgId) {
  return request({
    url: '/service/usermsg/' + usermsgId,
    method: 'delete'
  })
}
